import { post,get } from '@/utils/request';

export const login = (data) => {
	return post('/login', data);
};

export const logout = (data) => {
	return post('/logout', data);
};

export const allUser = (data) => {
	return get('/api/backend/user/allUser', data);
};

export const addUser = (data) => {
	return post('/api/backend/user/addUser', data);
};

export const delUser = (data) => {
	return post('/api/backend/user/delUser', data);
};

export const userEditUserApi = (data) => {
	return post('/api/backend/user/editUser', data);
};

export const userGetUserDeviceNumApi = (data) => {
	return post('/api/backend/user/getUserDeviceNum', data);
};

export const userUpdateMaxDeviceNumApi = (data) => {
	return post('/api/backend/user/updateMaxDeviceNum', data);
};

export const userChangePassApi = (data) => {
	return post('/api/backend/user/changePass', data);
};
export const userGetChildrenUsersAPI = (data) => {
	return get('/api/backend/user/getChildrenUsers', data);
};